﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ManagerViews/Manager.Master" AutoEventWireup="true" CodeBehind="Category.aspx.cs" Inherits="BestBuy.ManagerViews.Category" %>
<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>
<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100px
        }
        .style2
        {
            width: 100px;
            height: 40px;
        }
        .style3
        {
            height: 40px;
        }
    </style>

</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div class="category">
        <table >
            <tr>
                <td colspan="2">
                    <uc:MessagePanel ID="ManagerInfoMessage" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <h1 align="center"> 
                        <asp:Label ID="Label1" runat="server" Text="Product Category"></asp:Label>
                    </h1>
                </td>
            </tr>
            <tr>
                <td valign="top" width="200" align="left" >
                    <asp:TreeView ID="tvCategories" runat="server" ShowLines="True" 
                        onselectednodechanged="tvCategories_SelectedNodeChanged" 
                        Font-Size="Medium">
                    </asp:TreeView>
                </td>
                <td align="center" valign="top">
                        <table width="100%">
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="lbName" runat="server" Text="Name : "></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="Label3" runat="server" Text="Parent : "></asp:Label>
                                </td>
                                <td align="left" width="250px">
                                    <asp:DropDownList ID="cbParent" runat="server" Width="250px" 
                                        AppendDataBoundItems="True">
                                        <asp:ListItem Value="" Text="---No Parent---" />
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1" valign="top">
                                    <asp:Label ID="Label4" runat="server" Text="Description :"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtDescription" runat="server" Height="90px" 
                                        TextMode="MultiLine" Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2"></td>
                                <td align="left" class="style3">
                                    <asp:Button ID="btnUpdate" runat="server" Text="Update" CssClass="btn btn-primary"
                                        onclick="btnUpdate_Click" Width="70px" />
&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="btnDelete" runat="server" onclick="btnDelete_Click" CssClass="btn btn-primary"
                                        Text="Delete" Width="70px" />
&nbsp; &nbsp;
                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn btn-primary" Width="70px" />
                                </td>
                            </tr>
                        </table>
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <br />

    </div>
</asp:Content>
